import { ref, shallowRef } from 'vue'
import { defineStore } from 'pinia'

export const useLayerStore = defineStore('map', () => {
  const fxdLayer = ref([
    {
      key: '1风险点',
      data: shallowRef([]),
      visible: true,
      datass: new Map([]),
    },
    {
      key: '2风险点',
      data: shallowRef([]),
      visible: true,
      datass: new Map([]),
    },
    {
      key: '3 风险点',
      data: shallowRef([]),
      visible: true,
    },
  ])
  //   const deviceLayer = ref(new Map<string, Array<Cesium.BillboardCollection>>())
  //   const eventLayer = ref(new Map<string, Array<Cesium.BillboardCollection>>())
  //   //   const eventLayer = ref(new Map<string, Array<Cesium.BillboardCollection>>())

  //   return {
  //     fxdLayer,
  //     deviceLayer,
  //     eventLayer,
  //   }

  return {
    fxdLayer,
  }
})
